package com.lsy.mapper.interf;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lsy.entity.UserCustom;
import com.lsy.entity.UserQueryVo;

/**
 * mapper必須要MapperInterface
 * 
 * @author Administrator
 *
 */
public interface UserMapperCustom {

	// 后台用户列表
	public List<UserCustom> findUserList(UserQueryVo userQueryVo) throws Exception;

	/**
	 * 查找用户当前余额
	 * 
	 * @param userId
	 *            user的id
	 * @return 余额
	 * @throws Exception
	 */
	public long findUserMoney(int userId) throws Exception;

	/**
	 * 修改投标成功后的余额
	 * 
	 * @param money
	 *            剩余余额
	 * @param userId
	 *            user的id
	 * @return 大于0成功
	 * @throws Exception
	 */
	public int updateMoney(@Param("money") long money, @Param("userId") int userId) throws Exception;

}